package com.pinganfu.tesla.iwallet.util;

public final class ValidatorUtil {

	public static boolean checkNumber(String str) {
		return str.matches("^((\\d+\\.\\d*[1-9]\\d*)|(\\d*[1-9]\\d*\\.\\d+)|(\\d*[1-9]\\d*)|(\\.\\d*[1-9]\\d*))$");
	}

	public static boolean checkEmail(String email) {
		return email.matches("(^[a-z0-9]([a-z0-9]*[.-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\\.][a-z]{2,3}([\\.][a-z]{2})?$)");
	}

	public static boolean checkCertificateNo(String certNo) {
		return true;
	}

	public static boolean checkMobileNo(String mobileNo) {
		return true;
	}
}
